package com.gm.sfc.event;

import java.util.EventObject;

import android.database.Cursor;

/**
 * QueryEvent
 * @author $Author: segen.der.gottin@gmail.com $
 * @version $Revision: 7 $
 */
public class QueryEvent extends EventObject {
    private static final long serialVersionUID = 6910296466511642984L;
    private Cursor cursor;

    public QueryEvent(Object source) {
        super(source);
        if (source instanceof Cursor) {
            cursor = (Cursor) source;
        }
    }

    public void setCursor(Cursor cursor) {
        this.cursor = cursor;
    }

    public Cursor getCursor() {
        return cursor;
    }

}
